var mongoose=require('../mongoose_helper.js').mongoose
var replySchema = new mongoose.Schema({
	topicId:String,
	content:String,
	username:String,
	insertTime:String
});
replySchema.statics.addReply = function(reply, callback){
	this.create(reply, callback);
};
replySchema.statics.getReplys = function(topicId, callback){
	this.find({topicId:topicId}, callback);
};
module.exports = mongoose.model('Reply', replySchema);